import request from '../util/axios'
import qs from "qs";

/*
* 发送通知
* */
export function sendMessageToUser (msg,userId) {
    let data={
        msg:msg,
        userId:userId
    }
    return request({
        url: '/sys/notice/sendMessageToUser',
        method: 'post',
        headers:{
            'content-type':'application/x-www-form-urlencoded'
        },
        data: qs.stringify(data),
    })
}



/*
* 接受通知
* */
export function receiveMessage () {
    return request({
        url: '/sys/notice/sendMessage',
        method: 'get',
    })
}
